import Vapor
import Fluent

final class ReferenceVideo: Model, Content {
    static let schema: String = "referencevideo"
    @ID
    var id: UUID?
    
    @Field(key: "fileOcId")
    var fileOcId: String?
    
    @Parent(key: "referenceID")
    var reference: Reference
    
    
    init() {}
    
    init(id: UUID? = nil, fileOcId: String,
         referenceID: Reference.IDValue) {
        self.id = id
        self.fileOcId = fileOcId
        self.$reference.id = referenceID
    }

    
}
